Skip to content

Fix: Send the time zone when loading more search results in the sidebar - #781

Merged
axllent merged 1 commit into
axllent:developfrom
pcbeingused333:fix/sidebar-search-timezone
Nov 28, 2026
Merged

axllent merged 1 commit into
axllent:developfrom
pcbeingused333:fix/sidebar-search-timezone

Conversation

@pcbeingused333

Copy link
Copy Markdown
Contributor

Summary

With a before: or after: search, the message view sidebar can skip messages when loading more results.

The search view sends tz=<configured time zone> with date searches, but the sidebar's paging request (initLoadMoreAPIParams in MessageView.vue) did not. The server then evaluated the date in its own local zone, so the sidebar paged through a different result set than the one first shown. For example, with a UTC server, a browser set to America/Los_Angeles and before:2026-11-24, a message received at 04:00Z on 24 November matches the initial search but not the sidebar request.

The sidebar now sends tz under the same condition as the search view.

Related issues

None.

Type of change

  • Bug fix

Test plan

  • Added server/ui-src/views/MessageView.test.js: the two after:/before: cases fail without the change and pass with it; searches without a date filter, the plain mailbox list and an empty time zone setting still send no tz.
  • npm test, npm run lint and npm run package pass.

AI assistance disclosure

  • Extensive — AI generated a significant portion of the code in this PR

Claude Code was used to find the bug, write the change and the test, and draft this description.

Checklist

  • I have tested my changes locally
  • I have read and understood all code being submitted (including any AI-generated portions)
  • Documentation has been updated where relevant (no documentation change needed)

@axllent
axllent merged commit 1f9bc21 into axllent:develop Nov 28, 2026
8 checks passed
@axllent

axllent commented Nov 28, 2026

Copy link
Copy Markdown
Owner

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants